home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8608 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: dereferencing pointer to incomplete type
  5. Date: 03 Mar 1996 06:08:32 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar2230832@qcd.lanl.gov>
  8. References: <1996Mar3.040741.27234@dcs.warwick.ac.uk>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: D.C.Molero@dcs.warwick.ac.uk's message of Sun, 3 Mar 1996 04:07:41 GMT
  13.  
  14. In article <1996Mar3.040741.27234@dcs.warwick.ac.uk>
  15. D.C.Molero@dcs.warwick.ac.uk (Daniel Castillo Molero) writes:
  16.  
  17. <snip>
  18. DCM: struct polygon
  19. DCM: {
  20. DCM:   int tried;
  21. DCM:   double x, y;
  22. DCM:   int dir, numtimes, conv;
  23. DCM:   struct polyg *next;
  24. DCM: };
  25. <snip>
  26. DCM: void calc_area(struct polygon* polyg, double* area) {
  27. DCM: struct polygon* p;
  28. DCM: double result;
  29. DCM: p = polyg->next;
  30.  
  31. p has type struct polygon*, rhs has struct polyg*: not the same type.
  32.  
  33. DCM: while (p->next != 0) {
  34.  
  35. Where did you define struct polyg?
  36.  
  37. Cheers
  38. Tanmoy
  39. --
  40. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  41. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  42. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  43. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  44. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  45. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  46.